-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
WEB: Obfuscating workgroup email addresses to fix Issue #51209 #51266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @mroeschke & @datapythonista , Going through the details in |
@github-actions pre-commit |
Preview docs at: https://pandas.pydata.org/preview/51266/ |
Thanks @Kabiirk, this seems to be working as expected: https://pandas.pydata.org/preview/51266/about/team.html and the CI failures seem unrelated to this PR. I'd personally avoid having the real addresses in the html as said in the issue. I think this is an improvement, but with the approach I proposed we could avoid scrappers using a regex for the email addresses, not only the ones that extract it from the |
@datapythonista Per my understanding, you wanted to prepend text to the email initially, then have a JS script change that text. Not sure how the initial prepending of Alternatively, emails from the source itself would need to have a prefix, which the JS script removes (I don't think that's a good Idea). I'll make changes in this PR itself. |
Not in the source (the config file), but in the template, literally in the same line where you remove the prefix again via javascript. It's not great to have to do this, but I think it's a much simpler approach than any alternative that prevents the email addresses to be in the html, while they are made available to users. Thanks @Kabiirk |
Hi @datapythonista, I have implemented the proposed change. As expected, scraper picks up the wrong email (i.e. with the prefix): While the correct email is visible to the end-user after the Moreover, I was able to completely eliminate the use of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Kabiirk, added couple of suggestions to simplify the code, but looks great.
I'll make the suggested changes in my local branch & commit again. |
Hi, I tested this and it works, have committed the same to PR. Let me know the way forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice @Kabiirk, looks good to me.
Hi @datapythonista , Following up on your approval, let me know if this PR is supposed to be merged by me, or it would be merged by you ? |
Sorry for the delay @Kabiirk. We usually want two core developers to review a PR before it gets merged, to be in the safe side. I think we're both done here, let's see if another core dev can do the second review soon, and when they do, they'll merge. Thanks again for the help with this! |
Thanks @Kabiirk |
Thanks a lot @datapythonista & @mroeschke No worries, thanks for clarifying that. |
Hi,
As defined by the scope of this Issue #51209 , I have implemented a JavaScript based solution for obfuscating
workgroup
emails:If required, please let me know whether any Tests/Code Checks need to be added/passed for this or if any other change needs to be implemented to close this PR successfully .
Thanks
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.